//
// Created by Castle on 2025/10/26.
//

using namespace std;
#include <iostream>

int main() {

    int scores[10] {11,12,13,14,15,16,17,18,19,20};
    int * p_score { scores };

    // Print the address
    cout << "scores : " << scores << endl;  // Array
    cout << "p_score : " << p_score << endl; // Pointer

    // Print the content at that address
    cout << endl;
    cout << "Printing out data at array address: " << endl;
    cout << "*scores: " << *scores << endl;
    cout << "scores[0] : " << scores[0] << endl;
    cout << "*p_score : " << *p_score << endl;
    cout << "p_score[0] : " << p_score[0] << endl;


    cout << "size : " << size(scores) << endl;
    // cout << "size : " << size(p_score) << endl; // Error

    return 0;
}